/*
 * author      : dormi330
 * date        : 2018/6/24
 * project     : mybatis
 * description : 交易聚合接口定义
 */

package com.deep.trade.order;

import com.deep.trade.order.dto.*;
import com.github.pagehelper.PageInfo;

public interface OrderQueryFacade {

    // 获取用户的订单列表
    PageInfo<OutDtoOrderSummary> orderSummaryOfMember(int pageNum, int pageSize) throws Exception;

    // 分页获取 某个租户对所有 订单
    PageInfo<OutDtoTradeOrder> tradeOrderListOfTenant(int pageNum, int pageSize) throws Exception;

    // 获取用户的订单列表
    PageInfo<OutDtoTradeOrder> tradeOrderListOfMember(int pageNum, int pageSize) throws Exception;

    // 获取用户订单列表, 包含skuList
    PageInfo<OutDtoTradeOrderWithSku> tradeOrderWithSkuListOfMember(int pageNum, int pageSize) throws Exception;

    // 获取 tradeOrder 订单详情
    OutDtoOrderDetail tradeOrderDetail(String tradeOrderId) throws Exception;

    // 下单前, 计算价格
    OutDtoCalculatePayment calculatePayment(InDtoPlaceOrder inDtoPlaceOrder) throws Exception;
}
